package com.woniuxy.finance.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.finance.model.dto.FindBlotterDto;
import com.woniuxy.finance.model.dto.RechargeDto;
import com.woniuxy.finance.model.entity.Blotter;
import com.woniuxy.finance.model.entity.Recharge;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.finance.model.vo.CountClientVo;
import com.woniuxy.finance.model.vo.FindUpdateVo;
import com.woniuxy.common.model.entity.AccountManage;

import java.util.List;

/**
 * <p>
 * 客户充值表; 服务类
 * </p>
 *
 * @author chenlin
 * @since 2023-09-06
 */
public interface RechargeService extends IService<Recharge> {
    boolean addRecharge(Recharge recharge,String account);
    Page<Recharge> conditions(RechargeDto rechargeDTO);
    boolean updateRecharge(Recharge recharge);
    List<FindUpdateVo> findUpdate(Integer id);
    boolean delRecharge(Integer id);
    Page<AccountManage> findAccountManage(Integer page, Integer size);
    boolean addAccountManage(AccountManage accountManage);
    Page<AccountManage> conditionsAccount(String userName,String aLock,Integer page,Integer size);
    boolean lock(Integer id);
    boolean unlock(Integer id);
    boolean updatemoney(Integer id,String aname);

    IPage<CountClientVo> countClientData(Integer page,Integer size);

    IPage<Blotter> findBlotter(FindBlotterDto blotterDto);

    Page<Recharge> findRecharge(Integer page, Integer size);
}
